from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
import sys
import setuptools

__version__ = '0.0.1'

class get_pybind_include(object):
    def __init__(self, user=False):
        self.user = user

    def __str__(self):
        import pybind11
        return pybind11.get_include(self.user)

ext_modules = [
    Extension(
        'one_euro_filter',
        ['OneEuroFilter.cpp'],
        include_dirs=[
            get_pybind_include(),
            get_pybind_include(user=True)
        ],
        language='c++'
    ),
]

setup(
    name='one_euro_filter',
    version=__version__,
    author='sjh',
    author_email='sjh@sjh.com',
    description='One Euro Filter C++ implementation with Python bindings',
    long_description='',
    ext_modules=ext_modules,
    install_requires=['pybind11>=2.6.0'],
    zip_safe=False,
) 